package com.pcbly.web.components.views.jsp;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.components.Head;

import com.opensymphony.xwork2.util.ValueStack;

public class ExtHead extends Head {

	protected String adapter;
	protected String debug;
	protected String extLocation;
	protected String themes;
	protected String locale;
	protected String msgTarget;
	protected String smProvider;
	public ExtHead(ValueStack stack, HttpServletRequest request,
			HttpServletResponse response) {
		super(stack, request, response);
		// TODO Auto-generated constructor stub
	}
	public void evaluateParams() {
		super.evaluateParams();
		if(adapter!=null){
			addParameter("adapter", adapter);
		}
		if(debug!=null){
			addParameter("debug", debug);
		}
		if(extLocation!=null){
			addParameter("extLocation", extLocation);
		}
		if(themes!=null){
			addParameter("themes", themes);
		}
		if(locale!=null){
			addParameter("locale", locale);
		}
		if(msgTarget!=null){
			addParameter("msgTarget", msgTarget);
		}
		if(smProvider!=null){
			addParameter("smProvider", smProvider);
		}
	}
	public String getAdapter() {
		return adapter;
	}
	public void setAdapter(String adapter) {
		this.adapter = adapter;
	}
	public String getDebug() {
		return debug;
	}
	public void setDebug(String debug) {
		this.debug = debug;
	}
	public String getExtLocation() {
		return extLocation;
	}
	public void setExtLocation(String extLocation) {
		this.extLocation = extLocation;
	}
	public String getThemes() {
		return themes;
	}
	public void setThemes(String themes) {
		this.themes = themes;
	}
	public String getLocale() {
		return locale;
	}
	public void setLocale(String locale) {
		this.locale = locale;
	}
	public String getMsgTarget() {
		return msgTarget;
	}
	public void setMsgTarget(String msgTarget) {
		this.msgTarget = msgTarget;
	}
	public String getSmProvider() {
		return smProvider;
	}
	public void setSmProvider(String smProvider) {
		this.smProvider = smProvider;
	}
	
}
